
<?php
$this->breadcrumbs = array(
    'Category' => array('index'),
    $model->category_id,
);
?>
<?php
if ($model->icon) {
    $img = '<img src="' . UPLOAD_URL . 'category/' . $model->icon . '"/>';
} else {
    $img = '';
}
?>
<div class="box">
    <header>
        <h5><i class="icon icon-user"></i>View Category # <?php echo "{$model->category_id} ({$model->name})" ?></h5>
    </header>
    <div class="body">	
	<?php
	$this->widget('bootstrap.widgets.TbDetailView', array(
	    'data' => $model,
	    'attributes' => array(
		'category_id',
		'name',
		array(
		    'name' => 'Parent category',
		    'value' => $parentName
		),
		array(
		    'name' => 'Image',
		    'type' => 'raw',
		    'value' => $img
		)
	    )
	));
	?>

    </div>
</div>
